package com.link.base.base.coupons.dao.mybatis.mapper;


import com.link.base.base.coupons.model.CollectRecord;
import com.link.core.basic.dao.mapper.BasicMapper;

import java.util.List;

/**
 * @author wangdawei
 * @date 2018/6/10
 * <p>优惠券-领取记录mapper</p>
 * <p>Description</p>
 */

public interface CollectRecordMapper extends BasicMapper<CollectRecord> {

    /**
     * @author wangdawei
     * App优惠卷列表筛选
     */
    public List<CollectRecord> queryOrderByExamplePage(CollectRecord entity) throws Exception;

    /**
     * 查询指定红包记录数量
     *
     * @param collectRecord
     * @return Integer 查询总条数
     * @throws Exception
     */
    public Integer queryByCollect(CollectRecord collectRecord) throws Exception;

    /**
     * 无登陆新增优惠券领取记录
     * @param collectRecord
     * @throws Exception
     */
    void collectRecordInsertByInterface(CollectRecord collectRecord) throws Exception;

    /**
     * 查询优惠券领取记录
     * @param record
     * @return
     */
    List<CollectRecord> queryByCollectRecordExamplePage(CollectRecord record);

    /**
     * 更新优惠券通知状态
     * @author KuangRuifeng
     * @param collectRecord 列表
     */
    void updateNoticed(CollectRecord collectRecord) throws Exception;

    /**
     * 无登陆修改优惠券领取记录
     * @param collectRecord
     * @throws Exception
     */
    void collectRecordUpdateByInterface(CollectRecord collectRecord) throws Exception;

    /**
     * 查询优惠券领取记录监控列表
     * @param record
     * @return
     * @throws Exception
     */
    List<CollectRecord> queryListPage(CollectRecord record) throws Exception;

    /**
     * 查询优惠券领取记录监控详情
     * @param record
     * @return
     * @throws Exception
     */
    CollectRecord queryDetailById(CollectRecord record) throws Exception;

}
